package com.iven.xie.hystrix;

import com.iven.xie.fegin.HelloRemoteFegin;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author iven.xie
 */
@Component
public class HelloRemoteFeginHystrix implements HelloRemoteFegin {

    @Override
    public String hello(@RequestParam(value = "name") String name) {
        return "hello " + name + ", this message send failed ";
    }
}
